package com.crm.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the senddetails database table.
 * 
 */
@Entity
@Table(name="senddetails")
@NamedQuery(name="Senddetail.findAll", query="SELECT s FROM Senddetail s")
public class Senddetail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String senddetailsid;

	private BigDecimal sendfreight;

	private String sendmode;

	private String sendstate;

	@Temporal(TemporalType.DATE)
	private Date sendtime;

	//bi-directional many-to-one association to Product
	@ManyToOne
	@JoinColumn(name="pid")
	private Product product;

	//bi-directional many-to-one association to Send
	@ManyToOne
	@JoinColumn(name="sendid")
	private Send send;

	public Senddetail() {
	}

	public String getSenddetailsid() {
		return this.senddetailsid;
	}

	public void setSenddetailsid(String senddetailsid) {
		this.senddetailsid = senddetailsid;
	}

	public BigDecimal getSendfreight() {
		return this.sendfreight;
	}

	public void setSendfreight(BigDecimal sendfreight) {
		this.sendfreight = sendfreight;
	}

	public String getSendmode() {
		return this.sendmode;
	}

	public void setSendmode(String sendmode) {
		this.sendmode = sendmode;
	}

	public String getSendstate() {
		return this.sendstate;
	}

	public void setSendstate(String sendstate) {
		this.sendstate = sendstate;
	}

	public Date getSendtime() {
		return this.sendtime;
	}

	public void setSendtime(Date sendtime) {
		this.sendtime = sendtime;
	}

	public Product getProduct() {
		return this.product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public Send getSend() {
		return this.send;
	}

	public void setSend(Send send) {
		this.send = send;
	}

}